package com.ysccc.shares.web.vo;

import java.io.Serializable;

import org.springframework.beans.BeanUtils;

import com.ysccc.shares.entity.Shares;
import com.ysccc.shares.enums.Market;

import lombok.Data;

@Data
public class SharesVo implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;
	
	/** 股票代码 */
	private String code;
	
	/** 市场 */
	private Market market;

	/** 股票名称 */
	private String name;

	/** 历史最高 */
	private Double maxPrice;

	/** 卖出价 */
	private Double salePrice;

	public SharesVo(Shares shares) {
		super();
		BeanUtils.copyProperties(shares, this);
	}

	public SharesVo() {
		super();
	}
}
